package com.example.feitiansys.service.badness;

import com.example.feitiansys.pojo.Badness;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BadnessService {
    /**
     * 查询不良记录
     * @param badness
     * @return
     */
    List<Badness> getAllBadness(Badness badness);
    Badness selectBadnessById(Integer id);
    /**
     * 新增不良记录
     * @param badness
     * @return
     */
    Integer addBadness(Badness badness);

    /**
     * 删除不良记录
     * @param id
     * @return
     */
    boolean removeBadness(Integer id);
    boolean removeLeaveByIds(Object array);
    /**
     * 修改不良记录
     * @param badness
     * @return
     */
    Integer changeBadness(Badness badness);
    List<Badness> selectAllByLimit(@Param("offset") int offset, @Param("limit") int limit);
}
